import request from '@/utils/request'
export const listAssessResult = (search) => 
    request({
        url: '/assessResult/listAllAssessResult',
        method: 'get',
        params: {
            name: search.name,
            sort: search.sort,
            offset: search.offset,
            limit: search.limit,
            type: search.type
        }
    })
export const getAssessResult = (id) => 
    request({
        url: '/assessResult/getAssessResult',
        method: 'get',
        params: {
            id:id
        }
    })
export const addAssessResult = (search) => 
    request({
        url: '/assessResult/addAssessResult',
        method: 'post',
        data:search
    })

export const updateAssessResult = (model) => 
    request({
        url: '/assessResult/updateAssessResult',
        method: 'post',
        data:model
    })
    
export const deleteAssessResult = (id) => 
request({
    url: '/assessResult/deleteAssessResult',
    method: 'post',
    params: {
        id:id
    }
})

